cmake_minimum_required(VERSION 3.28)
project(javaUtilForCpp)

set(CMAKE_CXX_STANDARD 11)


add_library(javaUtilForCpp STATIC library.cpp
        src/ArrayList.cpp
        )

# 包含头文件目录
target_include_directories(javaUtilForCpp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

add_executable(test test/Test.cpp)

# 链接库到可执行文件
target_link_libraries(test PRIVATE javaUtilForCpp)